import { BasicColumn } from '@/components/Table';
export interface ListData {
  id: number;
  name: string;
  description: string;
  type_text: string;
  amount: number;
  start_date: string;
  end_date: string;
}

export const columns: BasicColumn<ListData>[] = [
  {
    title: '优惠券名称',
    key: 'name',
  },
  {
    title: '描述',
    key: 'description',
  },
  {
    title: '类型',
    key: 'type_text',
  },
  {
    title: '金额',
    key: 'amount',
  },
  {
    title: '生效时间',
    key: 'start_date',
  },
  {
    title: '失效时间',
    key: 'end_date',
  },
];
